package top.suven.base.http.message;


import top.suven.base.http.JsonParse;

/**
 * @author skyyu
 *
 */
public class RequestBaseMessage extends JsonParse {

    private int version;        //版本
    private int platform ;    //平台
    private String cliSign;        //会话密码
    private String v;         //版本
 
    public int getVersion() {
        return version;
    }
    public void setVersion(int version) {
        this.version = version;
    }
    public int getPlatform() {
        return platform;
    }
    public void setPlatform(int platform) {
        this.platform = platform;
    }
    public String getCliSign() {
        return cliSign;
    }
    public void setCliSign(String cliSign) {
        this.cliSign = cliSign;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public int getVtoInt(){
        try {
            return Integer.parseInt(getV().replaceAll("\\.", ""));
        } catch (Exception e) {
            return 0;
        }
    }


}
